import request from '@/utils/request'

// 查询indexConfig列表
export function listindexConfig(query) {
    return request({
        url: '/party-manage/indexConfig/list',
        method: 'get',
        params: query
    })
}

// 查询indexConfig详细
export function getindexConfig(ctId) {
    return request({
        url: '/party-manage/indexConfig/' + ctId,
        method: 'get'
    })
}

// 新增indexConfig
export function addindexConfig(data) {
    return request({
        url: '/party-manage/indexConfig',
        method: 'post',
        data: data
    })
}

// 修改indexConfig
export function updateindexConfig(data) {
    return request({
        url: '/party-manage/indexConfig/edit',
        method: 'post',
        data: data
    })
}

// 删除indexConfig
export function delindexConfig(ctId) {
    return request({
        url: '/party-manage/indexConfig/delete/' + ctId,
        method: 'post'
    })
}

// 导出indexConfig
export function exportindexConfig(query) {
    return request({
        url: '/party-manage/indexConfig/export',
        method: 'get',
        params: query
    })
}
